<?php
/**

 * IndexController - The default controller class

 * 

 * @author
 
 * @version 

 */

require_once 'Extension/Controller/Action.php';

class Admin_DbController extends Extension_Controller_Action
{
    public function indexAction()
    {
        $this->_forward('dump');
    }

    public function dumpAction()
    {
        $db = Zend::initDb();
        //shell_exec('mysqldump --user root -pass kbs > ' . PROJECT_ROOT . '/Repository/Backups/kbs.sql');
        //shell_exec('root');
        $this->_redirect('/admin');
    }
}